package com.kris.dev1;

/**
 * 	空白 final 灵活性更好
 *
 */
public class BlankFinal {
	
	private final int i =0;
	
	private final int j;
	
	private final People p;
	
	public BlankFinal(){ // 默认构造方法
		j = 1;
		p = new People(1);
	}
	
	public BlankFinal(int i){
		j = i;
		p = new People(i);
	}
	
	public void printVal() {
		System.out.println("blank的i值："+this.i);
		System.out.println("j的值："+this.j);
	}
	
	public static void main(String[] args) {
//		BlankFinal b = new BlankFinal();
//		b.printVal();
		BlankFinal b = new BlankFinal(22);
		b.printVal();
	}
}
